package com.iotimc.attendancesystem.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import butterknife.ButterKnife;

/**
 *
 * @author david
 * @date 2017/11/27
 */

public abstract class BaseActivity extends AppCompatActivity {
    /**
     * 获取资源layout文件
     * @return
     */
    protected abstract int getResId();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getResId());
        ButterKnife.bind(this);
    }

}
